package com.benmei.waijiaojun.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.benmei.waijiaojun.fragment.FragmentFactory;

/**
 * 作者：husunxing
 * 创建日期：2017/11/28.
 * 邮箱：husunxing@outlook.com
 * 描述：
 */
public class MyFragmentPagerAdapter extends FragmentPagerAdapter {


    public MyFragmentPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return FragmentFactory.createFragment(position);
    }

    @Override
    public int getCount() {
        return 5;
    }

}
